package demo01;

public class Goods {
    private  String name;
    private  double price;
    private  int numer;

    public Goods() {
    }

    public Goods(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public Goods(String name, double price, int numer) {
        this.name = name;
        this.price = price;
        this.numer = numer;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }



    /**
     * 获取
     * @return numer
     */
    public int getNumer() {
        return numer;
    }

    /**
     * 设置
     * @param numer
     */
    public void setNumer(int numer) {
        this.numer = numer;
    }

    public String toString() {
        return "商品信息：  " + name + ", 价格：  " + price + ", 数量：  " + numer ;
    }
}
